package com.example.libraryms.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.libraryms.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * @author Cauli
 * @date 2023/7/31 11:46
 * @description 图书分类 实体类
 */
@Data
@TableName("booktype")
@ApiModel(value = "BookType", description = "图书分类")
public class BookType extends BaseEntity {
    /**
     * 图书分类编号
     */
    @TableId(value = "no", type = IdType.AUTO)
    Integer no;

    /**
     * 图书分类名称
     */
    @TableField(value = "name")
    String name;
}
